package policy.branches;

import policy.nodes.Node;

public class ProtocolBranch extends Branch {

	protected ProtocolBranch(String protocol, Node node) {
		super(protocol, node);
	}

	public int compareTo(Branch other) {
		ProtocolBranch o = (ProtocolBranch) other;
		if (value.equals("*") || value.equals("any"))
			return 1;
		if (o.getValue().equals("*") || o.getValue().equals("any"))
			return -1;
		return 0;
	}

}
